package com.dimension.pojo;

import io.swagger.annotations.ApiModelProperty;



public class User {
    @ApiModelProperty(value = "用户id")
    private Integer userid;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "密码")
    private String userpwd;

    @ApiModelProperty(value = "角色id")
    private Integer roleid;

    @ApiModelProperty(value = "手机号")
    private String phone;


    //一对多
    private Role role;

    private Member member=new Member();


    public User(Integer userid, String username, String userpwd, Integer roleid, String phone) {
        this.userid = userid;
        this.username = username;
        this.userpwd = userpwd;
        this.roleid = roleid;
        this.phone = phone;
    }

    public Role getRole() {
        return role;
    }

    public void setRole(Role role) {
        this.role = role;
    }

    public Member getMember() {
        return member;
    }

    public void setMember(Member member) {
        this.member = member;
    }

    public User() {
        super();
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getUserpwd() {
        return userpwd;
    }

    public void setUserpwd(String userpwd) {
        this.userpwd = userpwd == null ? null : userpwd.trim();
    }

    public Integer getRoleid() {
        return roleid;
    }

    public void setRoleid(Integer roleid) {
        this.roleid = roleid;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }
}